package com.eazykitchen.service;

import com.eazykitchen.entity.Collect;
import com.eazykitchen.entity.Paginating;

import java.util.List;

public interface CollectService {

    /**
     * add
     * @param collect
     * @return
     * @throws Exception
     */
    public int addFood(Collect collect)throws Exception;

    /**
     * del
     * @param id
     * @return
     * @throws Exception
     */
    public int delFood(int id)throws Exception;

    /**
     *
     * @param collect
     * @return
     * @throws Exception
     */
    public int updateFood(Collect collect)throws Exception;

    /**
     *
     * @param collect
     * @return
     * @throws Exception
     */
    public Paginating<Collect> getFoodList(Collect collect)throws Exception;

    /**
     *
     * @param id
     * @return
     * @throws Exception
     */
    public Collect getFoodById(int id)throws Exception;
}
